<?php
class Blood_SugarModel extends Orm_Base{
    public $table = 'blood_sugar';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'blood_sugar' => array('type' => "tinyint(4)",'comment' => '血糖'),
        'date' => array('type' => "varchar(10)",'comment' => '日期'),
        'week' => array('type' => "tinyint",'comment' => '测量时间'),
        'status' => array('type' => "tinyint",'comment' => '血糖状态(1.正常、2.偏低、3.偏高)'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
        'at' => array('type' => "tinyint(1)",'comment' => '时间段(1.早上、2.上午、3.中午、4.下午、5.晚上)'),
        'sid' => array('type' => "int(11)",'comment' => '关联老年人ID'),
);
    public $pk = 'id';
}
?>
